package com.amazon.inapp.purchasing;

import com.amazon.android.Kiwi;
import java.util.Set;

final class KiwiRequestHandler
  implements RequestHandler
{
  static final String HANDLER_THREAD_NAME = "KiwiRequestHandlerHandlerThread";
  private static final String TAG = "KiwiRequestHandler";
  private final HandlerAdapter _handler = HandlerManager.getHandlerAdapter("KiwiRequestHandlerHandlerThread");

  public void sendContentDownloadRequest(String paramString1, String paramString2, String paramString3)
  {
  }

  public void sendGetUserIdRequest(final String paramString)
  {
    if (Logger.isTraceOn())
      Logger.trace("KiwiRequestHandler", "sendGetUserIdRequest");
    Runnable local1 = new Runnable()
    {
      public void run()
      {
        Kiwi.addCommandToCommandTaskPipeline(new KiwiGetUserIdCommandTask(paramString));
      }
    };
    this._handler.post(local1);
  }

  public void sendItemDataRequest(final Set<String> paramSet, final String paramString)
  {
    if (Logger.isTraceOn())
      Logger.trace("KiwiRequestHandler", "sendItemDataRequest");
    Runnable local3 = new Runnable()
    {
      public void run()
      {
        Kiwi.addCommandToCommandTaskPipeline(new KiwiGetItemDataRequestCommandTask(paramSet, paramString));
      }
    };
    this._handler.post(local3);
  }

  public void sendPurchaseRequest(final String paramString1, final String paramString2)
  {
    if (Logger.isTraceOn())
      Logger.trace("KiwiRequestHandler", "sendPurchaseRequest");
    Runnable local2 = new Runnable()
    {
      public void run()
      {
        Kiwi.addCommandToCommandTaskPipeline(new KiwiPurchaseRequestCommandTask(paramString1, paramString2));
      }
    };
    this._handler.post(local2);
  }

  public void sendPurchaseResponseReceivedRequest(final String paramString)
  {
    if (Logger.isTraceOn())
      Logger.trace("KiwiRequestHandler", "sendPurchaseResponseReceivedRequest");
    Runnable local5 = new Runnable()
    {
      public void run()
      {
        Kiwi.addCommandToCommandTaskPipeline(new KiwiResponseReceivedCommandTask(paramString));
      }
    };
    this._handler.post(local5);
  }

  public void sendPurchaseUpdatesRequest(final Offset paramOffset, final String paramString)
  {
    if (Logger.isTraceOn())
      Logger.trace("KiwiRequestHandler", "sendPurchaseUpdatesRequest");
    Runnable local4 = new Runnable()
    {
      public void run()
      {
        Kiwi.addCommandToCommandTaskPipeline(new KiwiPurchaseUpdatesCommandTask(paramOffset, paramString));
      }
    };
    this._handler.post(local4);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.inapp.purchasing.KiwiRequestHandler
 * JD-Core Version:    0.6.2
 */